package com.xishu.entity.shop;

import com.xishu.annotation.dao.DefaultValue;
import com.xishu.annotation.lang.Lang;
import com.xishu.entity.AbstractEntity;
import com.xishu.entity.ShopItem;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Entity(name = "pay_type")
@Table(indexes = {@Index(columnList = "shopId")})
@Data
public class PayType extends ShopItem {
    private static final long serialVersionUID = 1379338641805624438L;

    @ApiModelProperty(value = "餐厅ID")
    private Long companyId;

    @ApiModelProperty(value = "分店ID")
    private Long shopId;

    @ApiModelProperty(value = "名称")
    @Lang(key = "name")
    private String name;

    @ApiModelProperty(value = "名称-中文")
    @Lang(key = "name")
    private String name_zh;

    @ApiModelProperty(value = "名称-英文")
    @Lang(key = "name")
    private String name_en;

    @ApiModelProperty(value = "图片ID")
    private String imgId;

    @ApiModelProperty(value = "是否可用")
    @DefaultValue(defaultValue = "false")
    private Boolean enable;

    @ApiModelProperty(value = "默认类型")
    @DefaultValue(defaultValue = "false")
    private Boolean defaultType;

    @ApiModelProperty(value = "支付类型")
    private Integer type;

    @ApiModelProperty(value = "运行版本,香港hk，美国us,一套服务器，多套环境切换的时候用")
    private String runtimeVersion;

    @ApiModelProperty(value = "是否已经配置了CODE")
    private Boolean codeConfig;

    @ApiModelProperty(value = "是否开启EFT支付")
    @DefaultValue(defaultValue = "false")
    private Boolean eftEnable;

    @ApiModelProperty(value = "是否开启QF支付")
    @DefaultValue(defaultValue = "false")
    private Boolean qfEnable;
}
